package com.liang.pojo.dto;

import lombok.Data;

@Data

public class Editor {


    /**
     * 返回的标识符
     */
    private Integer errno;

    private  String message;

    public  static  Editor OkEditor(String url){
        Editor editor = new Editor();
        editor.setErrno(0);
        editor.setMessage(url);
        return  editor;
    }

    public static Editor ErrorEditor(String message){
        Editor editor = new Editor();
        editor.setErrno(1);
        editor.setMessage(message);
        return  editor;

    }
}
